<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>

<script type="text/javascript" src="<%=request.getContextPath()%>/js/validators/company.js"></script>

 <div class="f_l margin1" style="width:100%">
    <div style="height:24px;color:red" align="center" id="errorInfo">${failInfo }</div>
   	<div style="height:24px;color:red;font-weight:bold" align="left">新增公司</div>
    <s:form id="submitForm" action="company!save" method="post" theme="simple">
   	<table>
   		<tbody>
   			<tr>
   				<td width="10%"><s:text name="名称"/>：</td>
   				<td><input type="text" name="company.name" /></td>
   				<td><s:text name="电子邮箱"/>：</td>
   				<td><input type="text" name="company.email" /> </td>
   			</tr>
   			<tr>
   				<td><s:text name="电话"/>：</td>
   				<td><input type="text" name="company.telephone"></td>
   				<td><s:text name="传真"/>：</td>
   				<td><input type="text" name="company.fax">  </td>
   			</tr>
   			<tr>
   				<td colspan="4">
   					<s:text name="国家"/>：<input type="text" name="company.country">
          		    <s:text name="省"/>：<input type="text" name="company.province">
            		<s:text name="市"/>：<input type="text" name="company.city">
   				</td>
   			</tr>
   			<tr>
   				<td colspan="4">
   					 <s:text name="地址"/>：<input type="text" name="company.address" style="width: 450px;">
   				</td>
   			</tr>
   			<tr> 
   				<td colspan="2" align="right">
   				<input type="submit" value="确认" onclick="return doValidate(event);" />
  				</td>
   				<td colspan="2" align="left">
   					<input type="button" value="取消" onclick="window.location.href='company!list'"/>
   				</td>
   			 </tr>
   		</tbody>
   	</table>
    </s:form>
  </div>
  